This repository was archived by the owner on Jul 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
CU-8694py1jr fix old config load with reg json #449
Merged
tomolopolis
merged 7 commits into
master
from
CU-8694py1jr-fix-other-configs-with-reg-json
Jun 3, 2024
Merged
CU-8694py1jr fix old config load with reg json #449
tomolopolis
merged 7 commits into
master
from
CU-8694py1jr-fix-other-configs-with-reg-json
Jun 3, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all looks good, tested on the metacat models from KCH, works fine now! |
tomolopolis
reviewed
Jun 3, 2024
@@ -15,9 +15,24 @@ def weighted_average_function(self) -> Callable[[float], int]: | |||
|
|||
|
|||
def is_old_type_config_dict(d: dict) -> bool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assumes all configs were created post the pydantic changes to the config right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would be true since before that it would have been saved as a raw dict.
tomolopolis
approved these changes
Jun 3, 2024
alhendrickson
pushed a commit
to CogStack/cogstack-nlp
that referenced
this pull request
Jul 1, 2025
…-other-configs-with-reg-json CU-8694py1jr fix old config load with reg json
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The last PR for (almost) primitive config (#425) had a few issues:
ConfigMetaCAT
)This PR fixes the above.
It also adds tests for old types of config (regular, MetaCAT, TNER, and RelCAT).
For each, it makes sure that they're classified as old style, and that a value changed within them is correctly identified as having been changed / loaded off disk.